﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using IQKS.AWP.DataAccessLayer;
using IQKS.AWP.BusinessObject;


namespace IQKS.AWP.BusinessAccessLayer
{
    public class CandidateBriefBAL
    {

        public DataSet GetCandidateBrief()
        {
            DataSet objDs;
            try
            {
                objDs = new CandidateBriefDAL().GetCandidateBriefDetail(0);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }


        public DataSet GetCandidateBriefMapping()
        {
            DataSet objDs;
            try
            {
                objDs = new CandidateBriefDAL().GetCandidateBriefMapping(0);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }

        public DataSet GetCandidateBriefMappingbyCandidateDetails()
        {
            DataSet objDs;
            try
            {
                objDs = new CandidateBriefDAL().GetCandidateBriefMappingbyCandidateDetails(0);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }


        public object SetCandidateBriefDetail(CandidateBriefBO param)
        {
            try
            {
                return new CandidateBriefDAL().SetCandidateBriefDetail(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

    }
}
